package com.shuyixiao.javan8nv1.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

@TableName("nodes")
public class Node {
    @TableId
    private String id;
    @TableField
    private String name;
    @TableField
    private String type;
    @TableField
    private Integer typeVersion;
    @TableField
    private String parameters; // JSON 字符串
    @TableField
    private String credentials; // JSON 字符串
    @TableField
    private String position; // JSON 字符串 {x, y}
    @TableField
    private boolean disabled;
    @TableField("workflow_id")
    private String workflowId;

    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getType() { return type; }
    public void setType(String type) { this.type = type; }
    public Integer getTypeVersion() { return typeVersion; }
    public void setTypeVersion(Integer typeVersion) { this.typeVersion = typeVersion; }
    public String getParameters() { return parameters; }
    public void setParameters(String parameters) { this.parameters = parameters; }
    public String getCredentials() { return credentials; }
    public void setCredentials(String credentials) { this.credentials = credentials; }
    public String getPosition() { return position; }
    public void setPosition(String position) { this.position = position; }
    public boolean isDisabled() { return disabled; }
    public void setDisabled(boolean disabled) { this.disabled = disabled; }
    public String getWorkflowId() { return workflowId; }
    public void setWorkflowId(String workflowId) { this.workflowId = workflowId; }
}
